;
; Events text for Pomarj Scenario
; by Cyrion and friends
;
;
; Free Men
; Humanoids
; Kobolds
; Old Suel
; Wild Coast
; Evil Allies
; Barrier
;


@BEGINEVENTS
@DEBUG

@IF
NOSCHISM
DEFENDER=Anybody
@THEN
@ENDIF

;**** NEGOCIATION *******************************

@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
@ENDIF

;************* END NEGOCIATION *************************************************

;**** ALLIANCES *******************************
@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=Humanoids
whom=Free Men
@ENDIF
;**** END ALLIANCES *******************************

;**** RAISE DEAD *******************************
@IF
UNITKILLED
unit=Oberon
attacker=ANYBODY
defender=Free Men
@THEN
TEXT
The magic spells protecting the High Mage Oberon were not enough to save his life ! By chance, his body has been retrieved and Grinenlo, High Cleric of Pelor, was able to raise him from the dead! Sadly, this spell cannot be performed on Oberon again...
ENDTEXT
CREATEUNIT
unit=Oberon
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Wilfried
attacker=ANYBODY
defender=Free Men
@THEN
TEXT
The brave Wilfried preferred to fall in battle rather than flee! By chance, his body has been retrieved and Grinenlo, High Cleric of Pelor, was able to raise him from the dead! Sadly, Wilfried's stamina is no longer sufficient to allow a second use of this spell... 
ENDTEXT
CREATEUNIT
unit=Wilfried
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Fingolfin
attacker=ANYBODY
defender=Free Men
@THEN
TEXT
The Ranger Fingolfin has been killed by his hated humanoid foes! By chance, his body has been retrieved and Grinenlo, High Cleric of Pelor, was able to raise him from the dead! Sadly Fingolfin wouldn't survive a second resurrection spell...
ENDTEXT
CREATEUNIT
unit=Fingolfin
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Finvil
attacker=ANYBODY
defender=Free Men
@THEN
TEXT
The Elven Knight Finvil has lead his last charge! By chance, his body has been retrieved and Grinenlo, High Cleric of Pelor, was able to raise him from the dead! Sadly, the strength of the magic used means that this spell cannot be performed on Finvil again...
ENDTEXT
CREATEUNIT
unit=Finvil
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF
;**** END OF RAISE DEAD *******************************

;**** LEGIO *******************************
@IF
RECEIVEDTECHNOLOGY
technology=0
receiver=Free Men
@THEN
CREATEUNIT
unit=Legion
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=Free Men
@THEN
CREATEUNIT
unit=Legion
owner=Free Men
veteran=yes
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF
;************ END LEGIO ***********************

;**** PERRENLANDERS *******************************
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=Free Men
@THEN
CREATEUNIT
unit=Halberdiers
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=Free Men
@THEN
CREATEUNIT
unit=Halberdiers
owner=Free Men
veteran=yes
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF
;************* END PERRENLANDERS **********************

;**** PAYNIMS *******************************
@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=Free Men
@THEN
CREATEUNIT
unit=Paynim Riders
owner=Free Men
veteran=yes
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=98
receiver=Free Men
@THEN
CREATEUNIT
unit=Paynim Riders
owner=Free Men
veteran=yes
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF
;************* END PAYNIMS **********************

;************* DRAGONS **********************
@IF
RECEIVEDTECHNOLOGY
technology=25
receiver=Free Men
@THEN
CREATEUNIT
unit=White Dragon
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=27
receiver=Free Men
@THEN
CREATEUNIT
unit=White Dragon
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=28
receiver=Free Men
@THEN
CREATEUNIT
unit=Copper Dragon
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF
;**************** END DRAGONS *******************

;************* MAGES **********************
@IF
RECEIVEDTECHNOLOGY
technology=29
receiver=Free Men
@THEN
CREATEUNIT
unit=Mage
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=30
receiver=Free Men
@THEN
CREATEUNIT
unit=Mage
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF
;**************** END MAGES *******************

;************* NAVY **********************
@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=Free Men
@THEN
CREATEUNIT
unit=Merchant Ship
owner=Free Men
veteran=no
homecity=none
locations
9,69
13,69
17,65
19,65
29,67
35,67
endlocations
CHANGEMONEY
receiver=Free Men
amount=-300
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=50
receiver=Free Men
@THEN
CREATEUNIT
unit=Warship
owner=Free Men
veteran=no
homecity=none
locations
9,69
13,69
17,65
19,65
29,67
35,67
endlocations
CHANGEMONEY
receiver=Free Men
amount=-500
JUSTONCE
@ENDIF
;**************** END NAVY *******************

;************* DWARVES **********************
@IF
RECEIVEDTECHNOLOGY
technology=61
receiver=Free Men
@THEN
CREATEUNIT
unit=Dwarves
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=65
receiver=Free Men
@THEN
CREATEUNIT
unit=Dwarves
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

;**************** END DWARVES *******************

;**** CENTAURS *******************************
@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=Free Men
@THEN
CREATEUNIT
unit=Centaur
owner=Free Men
veteran=yes
homecity=none
locations
0,20
0,24
0,28
1,23
1,27
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=Free Men
@THEN
CREATEUNIT
unit=Centaur
owner=Free Men
veteran=yes
homecity=none
locations
0,20
0,24
0,28
1,23
1,27
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=Free Men
@THEN
CREATEUNIT
unit=Ent
owner=Free Men
veteran=yes
homecity=none
locations
0,20
0,24
0,28
1,23
1,27
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=Free Men
@THEN
CREATEUNIT
unit=Ent
owner=Free Men
veteran=yes
homecity=none
locations
0,20
0,24
0,28
1,23
1,27
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Free Men
@THEN
CREATEUNIT
unit=Centaur
owner=Free Men
veteran=yes
homecity=none
locations
0,20
0,24
0,28
1,23
1,27
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Free Men
@THEN
CREATEUNIT
unit=Centaur
owner=Free Men
veteran=yes
homecity=none
locations
0,20
0,24
0,28
1,23
1,27
endlocations
JUSTONCE
@ENDIF
;************* END CENTAURS **********************

;************* REFUGEES **********************
@IF
RECEIVEDTECHNOLOGY
technology=78
receiver=Free Men
@THEN
CREATEUNIT
unit=Refugees
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=80
receiver=Free Men
@THEN
CREATEUNIT
unit=Refugees
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF
;**************** END REFUGEES *******************

;************* URNST **********************
@IF
RECEIVEDTECHNOLOGY
technology=86
receiver=Free Men
@THEN
CREATEUNIT
unit=Ranger
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=87
receiver=Free Men
@THEN
CREATEUNIT
unit=Pioneers
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF
;**************** END URNST *******************

;************* DAM **********************
@IF
RECEIVEDTECHNOLOGY
technology=97
receiver=Free Men
@THEN
CREATEUNIT
unit=Rock to Mud
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Stone Dam
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Ogres' caverns have disappeared beneath torrents of rushing water! The Ogre threat is no more!
ENDTEXT
CHANGETERRAIN
terraintype=10
maprect
69,43,71,43,71,45,69,45
JUSTONCE
@ENDIF


;**************** END DAM *******************

;******* OGRES ****************************
@IF
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=Ogre
owner=Humanoids
veteran=yes
homecity=NONE
locations
69,43
71,45
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=Ogre
owner=Humanoids
veteran=yes
homecity=NONE
locations
71,45
69,43
endlocations
@ENDIF
;************** END OGRES *********************

;******* GIANTS ****************************
@IF
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=Giant
owner=Humanoids
veteran=yes
homecity=Hill Giants
locations
79,45
46,36
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=Giant
owner=Humanoids
veteran=yes
homecity=Giant Village
locations
46,36
79,45
endlocations
@ENDIF
;************** END GIANTS *********************

;******* GNOLLS AND LAIRS ****************************
@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Gnolls
owner=Humanoids
veteran=yes
homecity=NONE
locations
92,48
39,47
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Gnolls
owner=Humanoids
veteran=yes
homecity=NONE
locations
39,47
92,48
endlocations
@ENDIF

@IF
UNITKILLED
unit=Gnoll Lair 1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Gnoll Lair has been plundered, and flooded to make sure no Gnoll is left alive inside! Great riches have been found in the cavern: their sale will greatly help fund the war... 
ENDTEXT
CHANGETERRAIN
terraintype=10
maprect
92,48,92,48,92,48,92,48
CREATEUNIT
unit=Merchant
owner=Free Men
veteran=no
homecity=Blue
locations
93,49
93,47
94,48
92,50
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Gnoll Lair 2
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Gnoll Lair has been plundered, and flooded to make sure that no Gnoll is left alive inside! Great riches have been found in the cavern: their sale will greatly help fund the war... 
ENDTEXT
CHANGETERRAIN
terraintype=10
maprect
39,47,39,47,39,47,39,47
CREATEUNIT
unit=Merchant
owner=Free Men
veteran=no
homecity=Blue
locations
40,48
40,46
41,47
39,49
endlocations
JUSTONCE
@ENDIF
;************** END GNOLLS AND LAIRS *********************

;************* PETRIFIED ARMY **********************
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=Free Men
@THEN
CREATEUNIT
unit=Horn of Iuz
owner=Free Men
veteran=yes
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
TEXT
Last Stand Army!
ENDTEXT
CREATEUNIT
unit=Knights
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
CHANGETERRAIN
terraintype=10
maprect
128,0,128,0,128,0,128,0
TEXT
An old Suloise tribe who has been petrified for centuries has been freed with the Last Stand army. They refuse to join you, and settle to the north of what was the Twisted Forest. They seem really powerful, but can they be trusted?
ENDTEXT
GIVETECHNOLOGY
technology=17
receiver=Old Suel
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Knights
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Cavalry
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Cavalry
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Cavalry
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Archers
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Archers
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Archers
owner=Free Men
veteran=yes
homecity=NONE
locations
82,48
80,48
81,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Footmen
owner=Free Men
veteran=yes
homecity=NONE
locations
82,50
80,50
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Footmen
owner=Free Men
veteran=yes
homecity=NONE
locations
82,50
80,50
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Footmen
owner=Free Men
veteran=yes
homecity=NONE
locations
82,50
80,50
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Dwarves
owner=Free Men
veteran=yes
homecity=NONE
locations
82,50
80,50
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Dwarves
owner=Free Men
veteran=yes
homecity=NONE
locations
82,50
80,50
endlocations
@ENDIF

@IF
UNITKILLED
unit=Twisted For.
attacker=Free Men
defender=ANYBODY
@THEN
CREATEUNIT
unit=Dwarves
owner=Free Men
veteran=yes
homecity=NONE
locations
82,50
80,50
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=70
receiver=Old Suel
@THEN
MAKEAGGRESSION
who=Old Suel
whom=Free Men
@ENDIF
;************* END PETRIFIED ARMY **********************

;************* AREPO **********************
@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
TEXT
After many month of struggle, the refugees from Arepo have crossed half the world and at last reached the Wild Coast, ready to embark for Pomarj!
ENDTEXT
CREATEUNIT
unit=Refugees
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
CREATEUNIT
unit=Refugees
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
CREATEUNIT
unit=Refugees
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
CREATEUNIT
unit=Crossbow
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
CREATEUNIT
unit=Crossbow
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
CREATEUNIT
unit=Halberdiers
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Free Men
@THEN
CREATEUNIT
unit=Halberdiers
owner=Free Men
veteran=no
homecity=none
locations
13,1
11,1
9,1
10,0
endlocations
JUSTONCE
@ENDIF
;************* END AREPO **********************

;********************* ADVENTURERS ************************
@IF
RANDOMTURN
denominator=20
@THEN
CREATEUNIT
unit=Adventurer
owner=Free Men
veteran=no
homecity=NONE
locations
111,55
endlocations
@ENDIF
;********************* END OF ADVENTURERS ************************

;********************* GEMS MINES ************************
@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=Free Men
@THEN
CHANGETERRAIN
terraintype=6
maprect
89,45,89,45,89,45,89,45
JUSTONCE
@ENDIF
;********************* END OF GEMS MINES ************************

;********************* KOBOLDS ************************
@IF
RECEIVEDTECHNOLOGY
technology=74
receiver=Free Men
@THEN
MAKEAGGRESSION
who=Kobolds
whom=Humanoids
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=75
receiver=Free Men
@THEN
GIVETECHNOLOGY
technology=81
receiver=Kobolds
JUSTONCE
@ENDIF
;********************* END OF KOBOLDS ************************

;********************* DEMONS ************************
@IF
RANDOMTURN
denominator=30
@THEN
CREATEUNIT
unit=Demon
owner=Humanoids
veteran=yes
homecity=NONE
locations 
49,49
65,49
endlocations
@ENDIF
;********************* END OF DEMONS ************************

;********************* RED DRAGONS ************************
@IF
RANDOMTURN
denominator=40
@THEN
CREATEUNIT
unit=Red Dragon
owner=Humanoids
veteran=yes
homecity=NONE
locations 
65,49
49,49
87,45
55,41
38,40
endlocations
@ENDIF
;********************* END OF RED DRAGONS ************************

;********************* EVIL CAVALRY ************************
@IF
RANDOMTURN
denominator=20
@THEN
CREATEUNIT
unit=Evil Cavalry
owner=Humanoids
veteran=yes
homecity=NONE
locations 
49,49
52,24
65,49
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=20
@THEN
CREATEUNIT
unit=Evil Cavalry
owner=Humanoids
veteran=yes
homecity=NONE
locations 
52,24
49,49
65,49
endlocations
@ENDIF
;********************* END OF EVIL CAVALRY ************************

;******* RUINS ****************************
;***** SE Plains
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Bandits
owner=Humanoids
veteran=yes
homecity=NONE
locations 
109,51
104,58
97,55
91,55
84,56
60,54
endlocations
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
59,51,109,51,109,59,59,59
moveto
111,55
numbertomove=ALL
@ENDIF

;***** NE Plains
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Bandits
owner=Humanoids
veteran=yes
homecity=NONE
locations 
99,35
86,38
71,35
61,29
endlocations
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
61,29,99,29,99,39,61,39
moveto
111,55
numbertomove=ALL
@ENDIF

;***** E Hills
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Warg Riders
owner=Humanoids
veteran=yes
homecity=NONE
locations 
83,45
79,41
63,41
endlocations
@ENDIF

;***** SW Plains
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Warg Riders
owner=Humanoids
veteran=yes
homecity=NONE
locations 
40,54
30,58
23,47
12,54
endlocations
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
59,51,109,51,109,59,59,59
moveto
111,55
numbertomove=ALL
@ENDIF

;***** NW Plains
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Warg Riders
owner=Humanoids
veteran=yes
homecity=NONE
locations 
52,28
43,25
26,24
endlocations
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
61,29,99,29,99,39,61,39
moveto
111,55
numbertomove=ALL
@ENDIF

;***** W Hills
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Orc chieftain
owner=Humanoids
veteran=yes
homecity=NONE
locations 
49,45
47,35
43,45
27,35
29,43
endlocations
@ENDIF
;******* END OF RUINS ****************************

;************ BLUE ***********************
@IF
CITYTAKEN
city=Blue
attacker=Free Men
defender=Humanoids
@THEN
TEXT
The sea port of Blue has been liberated from the Humanoids and shall be the new capital of free Pomarj! The treasure of the dead humanoid ruler will help to rebuild the city!
ENDTEXT
CHANGEMONEY
receiver=Free Men
amount=600
JUSTONCE
@ENDIF

@IF
TURN
turn=-1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
109,57,109,57,109,57,109,57
moveto
111,55
numbertomove=ALL
@ENDIF
;***************** END OF BLUE *********************************************

;************ MOON KEEP ***********************
@IF
CITYTAKEN
city=Moon Keep
attacker=Free Men
defender=Humanoids
@THEN
GIVETECHNOLOGY
technology=58
receiver=Humanoids
CHANGETERRAIN
terraintype=10
maprect
122,0,122,0,122,0,122,0
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
59,39,59,39,59,39,59,39
moveto
87,45
numbertomove=ALL
JUSTONCE
@ENDIF
;***************** END OF MOON KEEP *********************************************

;************ SALFORIA ***********************
@IF
CITYTAKEN
city=Salforia
attacker=Free Men
defender=Humanoids
@THEN
GIVETECHNOLOGY
technology=72
receiver=Humanoids
CHANGETERRAIN
terraintype=10
maprect
116,0,116,0,116,0,116,0
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
34,44,34,44,34,44,34,44
moveto
65,49
numbertomove=ALL
JUSTONCE
@ENDIF
;***************** END OF SALFORIA *********************************************

;******* WYVERN ****************************
@IF
TURN
turn=100
@THEN
GIVETECHNOLOGY
technology=58
receiver=Humanoids
CREATEUNIT
unit=Mage
owner=Free Men
veteran=no
homecity=none
locations
111,55
endlocations
JUSTONCE
@ENDIF
;******* END OF WYVERN ****************************

;******* GATES OF HELL ****************************
@IF
TURN
turn=270
@THEN
TEXT
Documents have been found that hint that the Krellok, Lord of the Humanoids, is trying to sign a pact with a Demon Prince allowing him to open the gates linking Pomarj to hell!! You need to hurry, as this nightmare could become reality in 30 weeks...
ENDTEXT
JUSTONCE
@ENDIF

@IF
TURN
turn=300
@THEN
GIVETECHNOLOGY
technology=46
receiver=Humanoids
TEXT
Multiple gates between Pomarj and hell are now open, and demons and undead start flooding the peninsula! All might be lost...
ENDTEXT
JUSTONCE
@ENDIF
;******* END OF GATES OF HELL ****************************

;******* PIRATES ****************************
@IF
TURNINTERVAL
interval=15
@THEN
CREATEUNIT
unit=Pirate Ship
owner=Humanoids
veteran=yes
homecity=none
locations
127,31
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=15
@THEN
CREATEUNIT
unit=Pirates
owner=Humanoids
veteran=yes
homecity=none
locations
128,32
endlocations
MOVEUNIT
unit=AnyUnit
owner=Humanoids
maprect
128,32,128,32,128,32,128,32
moveto
127,31
numbertomove=ALL
@ENDIF

;********* END OF PIRATES **************************

@ENDEVENTS








